IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'CreditFetchByAccountId')
	BEGIN
		DROP  Procedure  CreditFetchByAccountId
	END

GO

CREATE Procedure CreditFetchByAccountId
(
	@accountId int
)
AS

SELECT * FROM VW_CreditFetch WHERE AccountId = @accountId

GO